package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.system.entity.ZApplication;
import cn.stylefeng.guns.modular.system.model.params.ZApplicationParam;
import cn.stylefeng.guns.modular.system.model.result.ZApplicationResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  装修申请
 * </p>
 *
 * @author yl
 * @since 2019-07-09
 */
public interface ZApplicationService extends IService<ZApplication> {

    /**
     * 新增
     *
     * @author yl
     * @Date 2019-07-09
     */
    void add(ZApplicationParam param);

    /**
     * 删除
     *
     * @author yl
     * @Date 2019-07-09
     */
    void delete(ZApplicationParam param);

    /**
     * 更新
     *
     * @author yl
     * @Date 2019-07-09
     */
    void update(ZApplicationParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author yl
     * @Date 2019-07-09
     */
    ZApplicationResult findBySpec(ZApplicationParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author yl
     * @Date 2019-07-09
     */
    List<ZApplicationResult> findListBySpec(ZApplicationParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author yl
     * @Date 2019-07-09
     */
     LayuiPageInfo findPageBySpec(ZApplicationParam param);


     /**
     * 查询集合
     */
     List<ZApplication> QueryList(@Param("condition") String condition);


    /**
     * 根据id查询数据
     */
    List<ZApplicationResult> QueryZApplicationID(@Param("id") Long id);





}





